package online.shenme.day07;

import online.shenme.day07.test01.Student;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class CollectionTest {
    public static void main(String[] args) {
        Collection<String> colist=new ArrayList<>();
        colist.add("123");
        colist.addAll(colist);
        System.out.println(colist);
        for (String s : colist) {
            System.out.println(s);
        }
        Iterator<String> iterator = colist.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}


interface InterA<E>{

}


interface InterB<E> extends InterA<E>{

}


interface InterC{

}